package com.hzh.page.common.utils;


import com.hzh.page.service.AuthenticationMenuService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;


public class HasRight {
    @Autowired
    private static AuthenticationMenuService menuService;

    public static boolean hasRight(HttpServletRequest request,String routeKey){
        return menuService.hashAuthority(request, routeKey);
    }
}
